Used to define all the comparison operators for the Variant. If Operator_Compare is defined, it is called whenever any of the comparison operators are used to compare the Self instance of the class with another instance.
Syntax |
|---|
|
result = Variant.( v ) |
Parameters |
|
|---|---|
|
v |
|
Return Value |
|
|---|---|
|
Result |
|
Notes
The following comparison operators are covered: =, <, >,<=, >=, <>.
Operator_Compare returns an Integer whose meaning is as follows: <0 means that Self is less than the passed parameter, 0 means that Self is equal to the passed parameter, and >0 means that Self is greater than the passed parameter.